<template>
  <div>
    <router-view></router-view>

    <van-tabbar route>
      <van-tabbar-item icon="home-o" replace to="/homepage">首页</van-tabbar-item>
      <van-tabbar-item icon="comment-o" replace to="/homepage/message">最新消息</van-tabbar-item>
      <van-tabbar-item icon="fire-o" replace to="/homepage/monitor">血糖监测</van-tabbar-item>
      <van-tabbar-item icon="shop-o" replace to="/homepage/store">糖友商城</van-tabbar-item>
      <van-tabbar-item icon="manager-o" replace to="/homepage/personal">个人中心</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
import { Tabbar, TabbarItem } from 'vant'

export default {
  components: {
    [Tabbar.name]: Tabbar,
    [TabbarItem.name]: TabbarItem
  },

  data() {
    return {
      active: 0
    }
  }
}
</script>

<style>
  .van-tabbar {
    height: 100px;
  }

  .van-tabbar-item .van-tabbar-item__icon {
    font-size: 40px;
  }
</style>
